import request from '@/utils/request'

// 获取小程序用户列表
export function getMiniProgramUsers(params) {
  return request({
    url: '/miniprogram/list',
    method: 'get',
    params
  })
}

// 获取小程序用户详情
export function getMiniProgramUser(id) {
  return request({
    url: `/miniprogram/${id}`,
    method: 'get'
  })
}

// 更新小程序用户状态
export function updateMiniProgramUserStatus(id, status) {
  return request({
    url: `/miniprogram/${id}/status`,
    method: 'put',
    data: { status }
  })
}
